package com.dongrj.framework.excel.converter;


import com.dongrj.framework.core.utils.DateUtils;

import java.util.Date;
import java.util.function.Function;

public abstract class AbstractDateConverter extends AbstractConverter<Date> {

    public abstract String format();

    @Override
    public Function<Date, String> source() {
        return (item) -> DateUtils.toString(item, format());
    }
}
